projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
468e453
)
notebook: Use a for loop when iterating over a list
author
Benjamin Otte
<otte@redhat.com>
Mon, 6 Sep 2010 21:15:56 +0000
(23:15 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Sep 2010 13:11:37 +0000
(15:11 +0200)
gtk/gtknotebook.c
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index e9288662b3afc95003dab47bc966b441c05b5571..1282081d3b83600eb3d43ca273e2ec6f62bc12ca 100644
(file)
--- a/
gtk/gtknotebook.c
+++ b/
gtk/gtknotebook.c
@@
-2282,12
+2282,9
@@
gtk_notebook_expose (GtkWidget *widget,
GtkNotebookPage *page;
GList *pages;
- pages = priv->children;
-
- while (pages)
- {
+ for (pages = priv->children; pages; pages = pages->next)
+ {
page = GTK_NOTEBOOK_PAGE (pages);
- pages = pages->next;
if (gtk_widget_get_window (page->tab_label) == event->window &&
gtk_widget_is_drawable (page->tab_label))